<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2021/12/1
 * Time: 15:49
 */
namespace vendor\user;


class user
{
    protected static $onlineCount;
    public function __construct()
    {
        echo '创建用户<br />';
        self::$onlineCount++;
    }
    //注册
    public  function regiter(){
        echo '注册<br />';
    }
    //登录
    public function loign(){
        echo '登录<br />';

    }
    //修改密码
    public function updatepassword(){
        echo '修改密码<br />';

    }
    public function onlevel(){
        echo '我是普通用户 <br /><br />';
    }
    public function __destruct()
    {
        echo '删除用户<br />';
        self::$onlineCount--;
    }
    public static function  linecount(){
        return  self::$onlineCount;
}
}